package com.lj.back.manage.scaffold.module.sys.enums;

import com.lj.back.manage.scaffold.common.response.Response;
import com.lj.back.manage.scaffold.common.util.EnumValid;

/**
 * 操作类型枚举类
 * @author lv
 * @version 1.0.0
 */
public enum  OperateTypeEnum implements EnumValid, Response {

    /**
     * 删除
     */
    DELETE("1","删除"),

    /**
     * 修改
     */
    UPDATE("2","修改"),

    /**
     * 查询
     */
    SELECT("3","查询"),

    /**
     * 新增
     */
    INSERT("4","新增")
    ;

    private String code;

    private String message;

    OperateTypeEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage(){
        return this.message;
    }
}
